CentOS 7
Sponsored Link

OpenStack Mitaka : Configure Manila#2 (Compute Node)
2016/05/13
 
Install OpenStack Shared File System (Manila).
This example shows to install Shared File Systems on the existing environment like follows.
                                    |
+----------------------+            |            +-----------------------+
|   [ Control Node ]   |            |            |   [ Network Node ]    |
|       Keystone       |10.0.0.30   |   10.0.0.50|       DHCP Agent      |
|        Glance        |------------+------------|       L3 Agent        |
|       Nova API       |eth0        |        eth0|       L2 Agent        |
|    Neutron Server    |            |            |    Metadata Agent     |
|      Cinder API      |            |            |    Cinder Volume      |
|      Manila API      |            |            |                       |
+----------------------+            |            +-----------------------+
                                eth0|10.0.0.51
                        +----------------------+
                        |   [ Compute Node ]   |
                        |     Nova Compute     |
                        |       L2 Agent       |
                        |     Manila Share     |
                        +----------------------+

 
Configure Compute Node on this section.
[1] Install Manila Share.
# install from Mitaka, EPEL

[root@node01 ~]#
yum --enablerepo=centos-openstack-mitaka,epel -y install openstack-manila-share python-manilaclient
[2] Configure Manila Share.
[root@node01 ~]#
mv /etc/manila/manila.conf /etc/manila/manila.conf.org

[root@node01 ~]#
vi /etc/manila/manila.conf
# create new

[DEFAULT]
my_ip = 10.0.0.51
api_paste_config = /etc/manila/api-paste.ini
rootwrap_config = /etc/manila/rootwrap.conf
state_path = /var/lib/manila
auth_strategy = keystone
rpc_backend = rabbit
default_share_type = default_share_type
enabled_share_backends = backend01
enabled_share_protocols = NFS,CIFS
# MariaDB connection info

[database]
connection = mysql://manila:password@10.0.0.30/manila
# Keystone auth info

[keystone_authtoken]
auth_uri = http://10.0.0.30:5000
auth_url = http://10.0.0.30:35357
memcached_servers = 10.0.0.30:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = manila
password = servicepassword
[oslo_concurrency]
lock_path = $state_path/tmp
# RabbitMQ connection info

[oslo_messaging_rabbit]
rabbit_host = 10.0.0.30
rabbit_port = 5672
rabbit_userid = openstack
rabbit_password = password
[nova]
auth_uri = http://10.0.0.30:5000
auth_url = http://10.0.0.30:35357
memcached_servers = 10.0.0.30:11211
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = servicepassword
[neutron]
url = http://10.0.0.30:9696
auth_uri = http://10.0.0.30:5000
auth_url = http://10.0.0.30:35357
memcached_servers = 10.0.0.30:11211
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = servicepassword
[cinder]
auth_uri = http://10.0.0.30:5000
auth_url = http://10.0.0.30:35357
memcached_servers = 10.0.0.30:11211
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = cinder
password = servicepassword
[backend01]
share_backend_name = backend01
share_mount_path = /shares
share_driver = manila.share.drivers.generic.GenericShareDriver
share_volume_fstype = ext4
driver_handles_share_servers = True
volume_name_template = manila-share-%s
volume_snapshot_name_template = manila-snapshot-%s
interface_driver = manila.network.linux.interface.OVSInterfaceDriver
service_instance_user = manila
service_instance_password = manila
service_image_name = manila-service-image
service_instance_network_helper_type = neutron
service_instance_name_template = manila_service_instance_%s
service_instance_flavor_id = 2
service_network_cidr = 10.254.0.0/16
service_instance_smb_config_path = $share_mount_path/smb.conf
smb_template_config_path = $state_path/smb.conf
[root@node01 ~]#
chmod 640 /etc/manila/manila.conf

[root@node01 ~]#
chgrp manila /etc/manila/manila.conf

[root@node01 ~]#
mkdir /var/lib/manila

[root@node01 ~]#
chown manila. /var/lib/manila

[root@node01 ~]#
systemctl start openstack-manila-share

[root@node01 ~]#
systemctl enable openstack-manila-share
# show status

[root@node01 ~]#
manila-manage service list

Binary           Host          Zone             Status     State Updated At
manila-scheduler dlp           nova             enabled    :-)   2016-05-13 12:03:55
manila-share     node01        nova             enabled    :-)   2016-05-13 12:04:03
 
Tweet